import request from './index'
// 联系方式接口


export const algin = () => {
  return request({
    method: 'GET', //请求方法
    url: '/api/nsc/weroad/getCookie?authCode=MDI0NGExNTlkZjdmNDU1YWIwNDNhYmY0', //请求地址
  })
}


// 获取联系方式
export const getContact = (params) => {
  return request({
    method: "GET",
    url: "/api/nsc/front/ndContactConf/getContactConf",
    params
  })
}
// 保存联系方式
export const submitContact = (data) => {
  return request({
    method: "POST",
    url: '/api/nsc/admin/ndContactConf/saveOrUpdate',
    data

  })
}


// 图片接口的处理
export const uploads = (data) => {
  return request({
    method: "POST",
    url: "/api/nsc/material/uploads",
    data
  })
}

// 视频接口的处理
export const uploadsVideo = (data) => {
  return request({
    method: "POST",
    url: "/api/nsc/material/vdUploads",
    data
  })
}


// 宣传视频接口
export const getVideo = (params) => {
  return request({
    method: "GET",
    url: "/api/nsc/front/ndAdVideoConf/AdVideoConf",
    params
  })
}
export const submitVideo = (data) => {
  return request({
    method: "POST",
    url: "/api/nsc/admin/ndAdVideoConf/saveOrUpdate",
    data
  })
}






// 详情页配置

export const navigationList = (params) => {
  return request({
    method: "GET",
    url: "/api/nsc/front/ndFrontMenu/list",
    params
  })
}


// 根据导航 ID查询详情页内容
export const inquireId = (data) => {
  return request({
    method: "GET",
    url: `/api/nsc/admin/ndFrontPage/getInfoById/${data.menuId}`,
  })
}


// 详情页保存
export const submitDetail = (data) => {
  return request({
    method: "POST",
    url: "/api/nsc/admin/ndFrontPage/saveOrUpdate",
    data
  })
}

// 详情页删除

export const deleteDetail = (data) => {
  return request({
    method: "POST",
    url: "/api/nsc/admin/ndFrontPage/del/multiple",
    data
  })
}


